package com.example.design.status;

import lombok.Data;

/**
 * @author: Bin.L
 * @date: 2022/3/14  11:26
 * @Description:
 */
@Data
public class TaskTest {

    private Long taskId;

    // 初始化为初始态
    private State state = new TaskOngoing();

    // 更新状态
    public void updateState(DefinitionEnum.ActionType actionType) {
        state.update(this, actionType);
    }
}
